import request from "@/utils/request";
import {AxiosPromise} from "axios";

/**
 * 添加用户
 *
 * @param data
 */
export function saveCheckIn(data: any) {
	return request({
		url: '/api/v1/auditCheckIn/save',
		method: 'post',
		data: data
	});
}

/**
 * 添加用户
 *
 * @param data
 */
export function confirmCheckIn(data: any) {
	return request({
		url: '/api/v1/auditCheckIn/confirm',
		method: 'post',
		data: data
	});
}

/**
 * 添加用户
 *
 * @param data
 */
export function reject(data: any) {
	return request({
		url: '/api/v1/auditCheckIn/reject',
		method: 'post',
		data: data
	});
}

/**
 * 获取所有店铺数据
 *
 * @param queryParams
 */
export function listCheckIn(orderNo: string): AxiosPromise<[]> {
	return request({
		url: '/api/v1/auditCheckIn/history/' + orderNo,
		method: 'get'
	});
}


